package com.vehicle.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-05-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Violation对象", description="")
public class Violation implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "违规记录ID")
        @TableId(value = "vio_id", type = IdType.AUTO)
      private Integer vioId;

      @ApiModelProperty(value = "违规用户ID")
      private Integer carId;

      @ApiModelProperty(value = "违规信息")
      private String message;

      @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty(value = "罚单是否已处理：0为未处理，1为已处理")
      private Integer processed;

      @ApiModelProperty(value = "添加违规记录管理员id")
      private Integer adminId;

     @ApiModelProperty(value = "处理措施")
     private String detail;

     @ApiModelProperty(value = "违规记录图片")
     private String imagUrl;

     @ApiModelProperty(value = "修改时间")
     @TableField(fill = FieldFill.INSERT_UPDATE)
     private LocalDateTime updateTime;

     @ApiModelProperty(value = "是否已删除")
     private Integer deleted;

}
